package com.easonji.admin.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;


import java.io.Serializable;

/**
 * <p>
 * 员工上下级关系及职务管理
 * </p>
 *
 * @author easonji
 * @since 2018-10-01
 */

@TableName("sys_user_user_post")

public class UserUserPost extends Model<UserUserPost> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "s_id", type = IdType.AUTO)
    private Integer sId;

    @TableField("s_user")
    private Integer sUser;

    @TableField("s_p_user")
    private Integer sPUser;

    @TableField("s_post")
    private Integer sPost;

    @TableField("s_p_all")
    private String sPAll;

    public Integer getsId() {
        return sId;
    }

    public void setsId(Integer sId) {
        this.sId = sId;
    }
    public Integer getsUser() {
        return sUser;
    }

    public void setsUser(Integer sUser) {
        this.sUser = sUser;
    }
    public Integer getsPUser() {
        return sPUser;
    }

    public void setsPUser(Integer sPUser) {
        this.sPUser = sPUser;
    }
    public Integer getsPost() {
        return sPost;
    }

    public void setsPost(Integer sPost) {
        this.sPost = sPost;
    }
    public String getsPAll() {
        return sPAll;
    }

    public void setsPAll(String sPAll) {
        this.sPAll = sPAll;
    }

    @Override
    protected Serializable pkVal() {
        return this.sId;
    }

    @Override
    public String toString() {
        return "UserUserPost{" +
        "sId=" + sId +
        ", sUser=" + sUser +
        ", sPUser=" + sPUser +
        ", sPost=" + sPost +
        ", sPAll=" + sPAll +
        "}";
    }
}
